<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script>
</head>

<body>
    <div id="container"></div>
    <script>
        let Gauge = G2Plot.Gauge;
        let gauge = new Gauge('container', {
            percent: 0.75,
            range: {
                color: '#5B8FF9',
            },
            statistic: {
                content: {
                    formatter: ({ percent }) => `Rate: ${(percent * 100).toFixed(0)}%`,
                },
            },
        });
        gauge.render()
    </script>
</body>

</html>